package com.general.template.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Author: 杰哥
 * Date: 2021/2/17 16:10
 * @Description:
**/

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "power_question_personality")
public class PowerQuestionPersonality implements Serializable {
    /**
     * 主键唯一id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 题目类型
     */
    @TableField(value = "question_type")
    private String questionType;

    /**
     * 题目内容
     */
    @TableField(value = "question_content")
    private String questionContent;

    /**
     * 岗位id
     */
    @TableField(value = "jobs_id")
    private Integer jobsId;

    /**
     * 题目考察点名称
     */
    @TableField(value = "inspection_name")
    private String inspectionName;

    /**
     * 题目维度类型id
     */
    @TableField(value = "dimension_id")
    private Integer dimensionId;

    /**
     * 题目媒体名称
     */
    @TableField(value = "question_media_name")
    private String questionMediaName;

    /**
     * 题目媒体url
     */
    @TableField(value = "question_media_url")
    private String questionMediaUrl;

    /**
     * 题目是否需要媒体文件 0不需要 1需要
     */
    @TableField(value = "question_media_status")
    private Integer questionMediaStatus;

    /**
     * 题目选项
     */
    @TableField(value = "question_options")
    private String questionOptions;

    /**
     * 题目选项分值
     */
    @TableField(value = "question_option_score")
    private String questionOptionScore;

    /**
     * 题目解析
     */
    @TableField(value = "question_answer_parse")
    private String questionAnswerParse;

    /**
     * 是否禁用题目 0否 1是
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(locale="zh", timezone="GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_QUESTION_TYPE = "question_type";

    public static final String COL_QUESTION_CONTENT = "question_content";

    public static final String COL_JOBS_ID = "jobs_id";

    public static final String COL_INSPECTION_NAME = "inspection_name";

    public static final String COL_DIMENSION_ID = "dimension_id";

    public static final String COL_QUESTION_MEDIA_NAME = "question_media_name";

    public static final String COL_QUESTION_MEDIA_URL = "question_media_url";

    public static final String COL_QUESTION_MEDIA_STATUS = "question_media_status";

    public static final String COL_QUESTION_OPTIONS = "question_options";

    public static final String COL_QUESTION_OPTION_SCORE = "question_option_score";

    public static final String COL_QUESTION_ANSWER_PARSE = "question_answer_parse";

    public static final String COL_STATUS = "status";

    public static final String COL_CREATE_TIME = "create_time";
}